package sign

import (
	"encoding/xml"
	"time"

	"awfan.cn/utils"
	"gopkg.in/mgo.v2/bson"
)

type SIGNS_XML struct {
	XMLName xml.Name `xml:"signs" json:"-"`

	Signs []SIGN_XML `xml:"sign" json:"signs"`
}

type SIGN_XML struct {
	XMLName      xml.Name              `xml:"sign" json:"-" bson:"-"`
	Id           bson.ObjectId         `xml:"id" json:"id" bson:"_id,omitempty"`
	Date         string                `xml:"date" json:"date" bson:"date,omitempty"`
	Tm1          string                `xml:"tm1" json:"tm1" bson:"tm1,omitempty"`
	Tm2          string                `xml:"tm2" json:"tm2" bson:"tm2,omitempty"`
	Member       utils.EMBED_DISPLAYID `xml:"member" json:"member" bson:"member,omitempty"`
	Place        utils.EMBED_DISPLAYID `xml:"place" json:"place" bson:"place,omitempty"`
	Course       utils.EMBED_DISPLAYID `xml:"course" json:"course" bson:"course,omitempty"`
	Description  string                `xml:"description" json:"description" bson:"description,omitempty"`
	Created_time time.Time             `xml:"created_time" json:"created_time" bson:"created_time,omitempty"`
}
